<%@ taglib prefix="s" uri="/struts-tags" %>
<%--
  Created by IntelliJ IDEA.
  User: zyh
  Date: 2017/2/27
  Time: 18:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
</head>
<body>
<h1><s:actionmessage/></h1>



<h1>用户名：<s:property value="username"/></h1>      <%--OGNL表达式--%>
<h1>欢迎您！</h1>
  <form>
    <table>
    <tr>显示所有用户信息：</tr>

    <s:iterator value="#userList">
        <tr>
            <td>id:</td>
            <td><s:property value="id"/></td>
            <td>username:</td>
            <td><s:property value="username"/></td>
            <td>password:</td>
            <td><s:property value="password"/></td>
        </tr>
    </s:iterator>

    </table>
    </form>
</body>
</html>
